﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace Moss.Workflow.Activities
{
    public partial class MossTaskManagerActivity
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition3 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            this.OnWFTaskChanged = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
            this.logToHistory_TaskDeleted = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.OnWFTaskDeleted = new Microsoft.SharePoint.WorkflowActions.OnTaskDeleted();
            this.logToHistory_TaskCompleted = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.CompleteWFTask = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
            this.ChangeEvent = new System.Workflow.Activities.EventDrivenActivity();
            this.DeleteEvent = new System.Workflow.Activities.EventDrivenActivity();
            this.LogToHistory_SendWFTaskEmail = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.SendWFTaskEmail = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.ifTaskCompleted = new System.Workflow.Activities.IfElseBranchActivity();
            this.ListenTaskChanges = new System.Workflow.Activities.ListenActivity();
            this.ifAdditionalNotification = new System.Workflow.Activities.IfElseBranchActivity();
            this.TaskComplete = new System.Workflow.Activities.IfElseActivity();
            this.WhileTaskCompleted = new System.Workflow.Activities.WhileActivity();
            this.AdditionalNotification = new System.Workflow.Activities.IfElseActivity();
            this.logToHistory_TaskCreated = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.CreateWFTask = new Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType();
            // 
            // OnWFTaskChanged
            // 
            activitybind1.Name = "MossTaskManagerActivity";
            activitybind1.Path = "AfterProperties";
            activitybind2.Name = "MossTaskManagerActivity";
            activitybind2.Path = "BeforeProperties";
            correlationtoken1.Name = "TaskToken";
            correlationtoken1.OwnerActivityName = "MossTaskManagerActivity";
            this.OnWFTaskChanged.CorrelationToken = correlationtoken1;
            this.OnWFTaskChanged.Executor = null;
            this.OnWFTaskChanged.Name = "OnWFTaskChanged";
            activitybind3.Name = "MossTaskManagerActivity";
            activitybind3.Path = "TaskId";
            this.OnWFTaskChanged.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.OnTaskChangedHandler);
            this.OnWFTaskChanged.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.BeforePropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.OnWFTaskChanged.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.OnWFTaskChanged.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // logToHistory_TaskDeleted
            // 
            this.logToHistory_TaskDeleted.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistory_TaskDeleted.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.TaskDeleted;
            this.logToHistory_TaskDeleted.HistoryDescription = "Task was deleted";
            this.logToHistory_TaskDeleted.HistoryOutcome = "";
            this.logToHistory_TaskDeleted.Name = "logToHistory_TaskDeleted";
            this.logToHistory_TaskDeleted.OtherData = "";
            this.logToHistory_TaskDeleted.UserId = -1;
            activitybind5.Name = "MossTaskManagerActivity";
            activitybind5.Path = "AfterProperties";
            // 
            // OnWFTaskDeleted
            // 
            this.OnWFTaskDeleted.CorrelationToken = correlationtoken1;
            this.OnWFTaskDeleted.Executor = null;
            this.OnWFTaskDeleted.Name = "OnWFTaskDeleted";
            activitybind4.Name = "MossTaskManagerActivity";
            activitybind4.Path = "TaskId";
            this.OnWFTaskDeleted.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.OnTaskDeletedHandler);
            this.OnWFTaskDeleted.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskDeleted.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.OnWFTaskDeleted.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskDeleted.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // logToHistory_TaskCompleted
            // 
            this.logToHistory_TaskCompleted.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistory_TaskCompleted.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.TaskCompleted;
            activitybind6.Name = "MossTaskManagerActivity";
            activitybind6.Path = "logToHistory_TaskCompleted_HistoryDescription";
            this.logToHistory_TaskCompleted.HistoryOutcome = "Task Completed";
            this.logToHistory_TaskCompleted.Name = "logToHistory_TaskCompleted";
            this.logToHistory_TaskCompleted.OtherData = "";
            this.logToHistory_TaskCompleted.UserId = -1;
            this.logToHistory_TaskCompleted.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            // 
            // CompleteWFTask
            // 
            this.CompleteWFTask.CorrelationToken = correlationtoken1;
            this.CompleteWFTask.Name = "CompleteWFTask";
            activitybind7.Name = "MossTaskManagerActivity";
            activitybind7.Path = "TaskId";
            this.CompleteWFTask.TaskOutcome = null;
            this.CompleteWFTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            // 
            // ChangeEvent
            // 
            this.ChangeEvent.Activities.Add(this.OnWFTaskChanged);
            this.ChangeEvent.Name = "ChangeEvent";
            // 
            // DeleteEvent
            // 
            this.DeleteEvent.Activities.Add(this.OnWFTaskDeleted);
            this.DeleteEvent.Activities.Add(this.logToHistory_TaskDeleted);
            this.DeleteEvent.Name = "DeleteEvent";
            // 
            // LogToHistory_SendWFTaskEmail
            // 
            this.LogToHistory_SendWFTaskEmail.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.LogToHistory_SendWFTaskEmail.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.LogToHistory_SendWFTaskEmail.HistoryDescription = "";
            this.LogToHistory_SendWFTaskEmail.HistoryOutcome = "";
            this.LogToHistory_SendWFTaskEmail.Name = "LogToHistory_SendWFTaskEmail";
            this.LogToHistory_SendWFTaskEmail.OtherData = "";
            this.LogToHistory_SendWFTaskEmail.UserId = -1;
            this.LogToHistory_SendWFTaskEmail.MethodInvoking += new System.EventHandler(this.LogToHistory_SendWFTaskEmail_Handler);
            // 
            // SendWFTaskEmail
            // 
            this.SendWFTaskEmail.BCC = null;
            this.SendWFTaskEmail.Body = null;
            this.SendWFTaskEmail.CC = null;
            this.SendWFTaskEmail.CorrelationToken = correlationtoken1;
            this.SendWFTaskEmail.From = "info@moss.com";
            this.SendWFTaskEmail.Headers = null;
            this.SendWFTaskEmail.IncludeStatus = false;
            this.SendWFTaskEmail.Name = "SendWFTaskEmail";
            this.SendWFTaskEmail.Subject = "Set your email subject";
            this.SendWFTaskEmail.To = null;
            this.SendWFTaskEmail.MethodInvoking += new System.EventHandler(this.SendTaskEmailHandler);
            // 
            // ifTaskCompleted
            // 
            this.ifTaskCompleted.Activities.Add(this.CompleteWFTask);
            this.ifTaskCompleted.Activities.Add(this.logToHistory_TaskCompleted);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.TaskNotDeleted);
            this.ifTaskCompleted.Condition = codecondition1;
            this.ifTaskCompleted.Name = "ifTaskCompleted";
            // 
            // ListenTaskChanges
            // 
            this.ListenTaskChanges.Activities.Add(this.DeleteEvent);
            this.ListenTaskChanges.Activities.Add(this.ChangeEvent);
            this.ListenTaskChanges.Name = "ListenTaskChanges";
            // 
            // ifAdditionalNotification
            // 
            this.ifAdditionalNotification.Activities.Add(this.SendWFTaskEmail);
            this.ifAdditionalNotification.Activities.Add(this.LogToHistory_SendWFTaskEmail);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.AdditionalNotificationRequired);
            this.ifAdditionalNotification.Condition = codecondition2;
            this.ifAdditionalNotification.Name = "ifAdditionalNotification";
            // 
            // TaskComplete
            // 
            this.TaskComplete.Activities.Add(this.ifTaskCompleted);
            this.TaskComplete.Name = "TaskComplete";
            // 
            // WhileTaskCompleted
            // 
            this.WhileTaskCompleted.Activities.Add(this.ListenTaskChanges);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.TaskNotCompleted);
            this.WhileTaskCompleted.Condition = codecondition3;
            this.WhileTaskCompleted.Name = "WhileTaskCompleted";
            // 
            // AdditionalNotification
            // 
            this.AdditionalNotification.Activities.Add(this.ifAdditionalNotification);
            this.AdditionalNotification.Name = "AdditionalNotification";
            // 
            // logToHistory_TaskCreated
            // 
            this.logToHistory_TaskCreated.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistory_TaskCreated.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.TaskCreated;
            this.logToHistory_TaskCreated.HistoryDescription = "Task Created";
            this.logToHistory_TaskCreated.HistoryOutcome = "Task Created";
            this.logToHistory_TaskCreated.Name = "logToHistory_TaskCreated";
            this.logToHistory_TaskCreated.OtherData = "";
            this.logToHistory_TaskCreated.UserId = -1;
            // 
            // CreateWFTask
            // 
            activitybind8.Name = "MossTaskManagerActivity";
            activitybind8.Path = "TaskContentTypeId";
            this.CreateWFTask.CorrelationToken = correlationtoken1;
            this.CreateWFTask.ListItemId = -1;
            this.CreateWFTask.Name = "CreateWFTask";
            this.CreateWFTask.SpecialPermissions = null;
            activitybind9.Name = "MossTaskManagerActivity";
            activitybind9.Path = "TaskId";
            activitybind10.Name = "MossTaskManagerActivity";
            activitybind10.Path = "TaskProperties";
            this.CreateWFTask.MethodInvoking += new System.EventHandler(this.CreateTaskHandler);
            this.CreateWFTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            this.CreateWFTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            this.CreateWFTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.ContentTypeIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            // 
            // MossTaskManagerActivity
            // 
            this.Activities.Add(this.CreateWFTask);
            this.Activities.Add(this.logToHistory_TaskCreated);
            this.Activities.Add(this.AdditionalNotification);
            this.Activities.Add(this.WhileTaskCompleted);
            this.Activities.Add(this.TaskComplete);
            this.Name = "MossTaskManagerActivity";
            this.CanModifyActivities = false;

        }

        #endregion

        private Microsoft.SharePoint.WorkflowActions.SendEmail SendWFTaskEmail;
        private IfElseBranchActivity ifAdditionalNotification;
        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity LogToHistory_SendWFTaskEmail;
        private IfElseActivity AdditionalNotification;
        private Microsoft.SharePoint.WorkflowActions.CompleteTask CompleteWFTask;
        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity logToHistory_TaskCompleted;
        private IfElseBranchActivity ifTaskCompleted;
        private IfElseActivity TaskComplete;
        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity logToHistory_TaskCreated;
        private EventDrivenActivity ChangeEvent;
        private EventDrivenActivity DeleteEvent;
        private ListenActivity ListenTaskChanges;
        private Microsoft.SharePoint.WorkflowActions.OnTaskDeleted OnWFTaskDeleted;
        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity logToHistory_TaskDeleted;
        private Microsoft.SharePoint.WorkflowActions.OnTaskChanged OnWFTaskChanged;
        private WhileActivity WhileTaskCompleted;
        private Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType CreateWFTask;
















































    }
}
